import { IModeNameMap } from "./Interface";

export const RADIAN_TO_ANGLE: number = 57.29577951308232;
export const ANGLE_TO_RADIAN: number = 0.017453292519943295;

export const MODE_NAME_MAP: IModeNameMap = {
    0: '普通模式',
    1: '最新关卡模式',
    3: '神奇汉字',
    4: '玩梗消除',
    5: '连线达人',
    6: '普通模式',
    7: '普通模式',
    8: '普通模式',

    //TODO 新模式请看这里
};

export function HALF_WIDTH(): number {
    return cc.winSize.width * 0.5;
}
export function HALF_HEIGHT(): number {
    return cc.winSize.height * 0.5;
}

export const dirList = [
    { x: 0, y: -1 },
    { x: 1, y: 0 },
    { x: -1, y: 0 },
    { x: 0, y: 1 }
]